package com.sxkf.template.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sxkf.template.entity.Order;

import java.util.List;

public interface OrderMapper extends BaseMapper<Order> {

    List<Order> busUserGetOrder(Integer offset, Integer pageSize, String state, String storeId, String orderId, Boolean isSpellOut);

    Long getCount(String state, String storeId, String orderId, Boolean isSpellOut);

    Long spellOutCount(String userId, String orderState, boolean emptyOrderState, String spellOutState, boolean emptySpellOutState, boolean equal);

    List<Order> spellOutList(Integer offset, Integer pageSize, String userId, String orderState, boolean emptyOrderState, String spellOutState, boolean emptySpellOutState, boolean equal);

    IPage<Order> backSpellOutList(Page<Order> orderPage, String storeId, String orderState, String spellOutState);
}